# coding:UTF-8
# 父类
class Father(object):
    def __init__(self):
        self.num = 1

    def info_print(self):
        print(self.num)
# 子类
class Son(Father):
    pass

if __name__ == '__main__':
    # 创建对象
    result_son = Son()   # 子类实例化对象
    result_son.info_print()  # 子类既然继承了父类，那么就默认具备父类当中所以的属性和方法

